<div class="filmes index">
	<h2><?php echo __('Filmes'); ?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id'); ?></th>
			<th><?php echo $this->Paginator->sort('tipo_id'); ?></th>
			<th><?php echo $this->Paginator->sort('titulo'); ?></th>
			<th><?php echo $this->Paginator->sort('titulo_original'); ?></th>
			<th><?php echo $this->Paginator->sort('filmescol'); ?></th>
			<th><?php echo $this->Paginator->sort('ano'); ?></th>
			<th><?php echo $this->Paginator->sort('data'); ?></th>
			<th><?php echo $this->Paginator->sort('diretore_id'); ?></th>
			<th><?php echo $this->Paginator->sort('nascionalidade_id'); ?></th>
			<th><?php echo $this->Paginator->sort('atore_id'); ?></th>
			<th><?php echo $this->Paginator->sort('critica'); ?></th>
			<th><?php echo $this->Paginator->sort('sinopse'); ?></th>
			<th><?php echo $this->Paginator->sort('duracao'); ?></th>
			<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
	foreach ($filmes as $filme): ?>
	<tr>
		<td><?php echo h($filme['Filme']['id']); ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($filme['Tipo']['id'], array('controller' => 'tipos', 'action' => 'view', $filme['Tipo']['id'])); ?>
		</td>
		<td><?php echo h($filme['Filme']['titulo']); ?>&nbsp;</td>
		<td><?php echo h($filme['Filme']['titulo_original']); ?>&nbsp;</td>
		<td><?php echo h($filme['Filme']['filmescol']); ?>&nbsp;</td>
		<td><?php echo h($filme['Filme']['ano']); ?>&nbsp;</td>
		<td><?php echo h($filme['Filme']['data']); ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($filme['Diretore']['id'], array('controller' => 'diretores', 'action' => 'view', $filme['Diretore']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($filme['Nascionalidade']['id'], array('controller' => 'nascionalidades', 'action' => 'view', $filme['Nascionalidade']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($filme['Atore']['id'], array('controller' => 'atores', 'action' => 'view', $filme['Atore']['id'])); ?>
		</td>
		<td><?php echo h($filme['Filme']['critica']); ?>&nbsp;</td>
		<td><?php echo h($filme['Filme']['sinopse']); ?>&nbsp;</td>
		<td><?php echo h($filme['Filme']['duracao']); ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $filme['Filme']['id'])); ?>
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $filme['Filme']['id'])); ?>
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $filme['Filme']['id']), null, __('Are you sure you want to delete # %s?', $filme['Filme']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>

	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Filme'), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Tipos'), array('controller' => 'tipos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Tipo'), array('controller' => 'tipos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Diretores'), array('controller' => 'diretores', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Diretore'), array('controller' => 'diretores', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Nascionalidades'), array('controller' => 'nascionalidades', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Nascionalidade'), array('controller' => 'nascionalidades', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Atores'), array('controller' => 'atores', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Atore'), array('controller' => 'atores', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Criticas'), array('controller' => 'criticas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Critica'), array('controller' => 'criticas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Midias'), array('controller' => 'midias', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Midia'), array('controller' => 'midias', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Categorias'), array('controller' => 'categorias', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Categoria'), array('controller' => 'categorias', 'action' => 'add')); ?> </li>
	</ul>
</div>
